import request from "@/utils/request.js";

/**
 * 列表查询
 * @param params
 */
export const customerPage = query => {
  return request({
    url: `/purchase/channel/manage/customer/page/${query.channelTenantId}`,
    method: "get",
    params: query
  });
};

/**
 * 导出
 * @param params
 */
export const customerExport = query => {
  return request({
    url: `/purchase/channel/manage/customer/export/${query.channelTenantId}`,
    method: "get",
    params: query,
    responseType: "blob"
  });
};

/**
 * 共享商家列表
 * @param params
 */
export const getMerchantPage = query => {
  return request({
    url: `/purchase/api/cpaBusinessShowroomManage/shareMerchantPage`,
    method: "get",
    params: query
  });
};
